package com.fengplus.demo.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.fengplus.demo.entity.CommonResult;

public class SentinelBlockHandler {

    public static CommonResult handlerExceptionA(BlockException e){
        return new CommonResult(400, "Handler A");
    }

    public static CommonResult handlerExceptionB(BlockException e){
        return new CommonResult(400, "Handler B");
    }

}
